package com.mineoj.service;

import com.mineoj.model.entity.User;
import com.mineoj.model.entity.UserFollow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 明月
* @description 针对表【user_follow(用户关注)】的数据库操作Service
* @createDate 2025-04-12 23:52:00
*/
public interface UserFollowService extends IService<UserFollow> {
    /**
     * 关注
     *
     * @param userId
     * @param loginUser
     * @return
     */
    int doUserFollow(long userId, User loginUser);

    /**
     * 用户关注（内部服务）
     *
     * @param userId
     * @param postId
     * @return
     */
    int doUserFollowInner(long userId, long postId);

}
